﻿@model PhoneBilling.Models.Report5Model
@{
    ViewBag.Title = "日话务统计";
    Layout = "~/Views/Shared/_Layout.cshtml"; 
}
<script type="text/javascript">
    $(document).ready(           
function () 
{  
    $(".areaType").attr("disabled" , $(".s2").attr("checked") == "checked");
    $(".t2").attr("disabled", $(".s1").attr("checked") == "checked");

    $("#date1").ligerDateEditor({  label: '开始日期', initValue: '@Model.开始日期.ToString("yyyy-MM-dd")', format: "yyyy-MM-dd" });
    $("#date2").ligerDateEditor({  label: '结束日期', initValue: '@Model.结束日期.ToString("yyyy-MM-dd")', format: "yyyy-MM-dd" });
}       
);
function exportClick() {
        $(".export").val("True");
        $("form").submit();
    }

    function searchClick() {
        $(".export").val("False");
        $("form").submit();
    }
</script>
@using (Html.BeginForm())
{
    <div>
        <div>
        @Html.HiddenFor(m => m.IsExport, new { @class = "export" })
        <div class="system_input_contain">
             @Html.TextBox("开始日期", Model.开始日期, new { @id = "date1" }) 
        </div>
        <div class="system_input_contain">
             @Html.TextBox("结束日期", Model.结束日期, new { @id = "date2" }) 
             
        </div>
         <div class="system_input_contain">
                <input type="button" id="btnSearch" value="查询" />
            <input type="button" id="btnImport" value="导出Excel" />
@*            <input type="submit" value="查询" class="input-submit" onclick="searchClick()" />
            <input type="submit" value="导出Excel" class="input-submit" onclick="exportClick()" />*@
    </div>
     </div>
    </div>
   
}

<script type="text/javascript">
    $(document).ready(function () {
        $("#btnSearch").ligerButton(
        {
            click: function () {
                searchClick();
            }
        });
        $("#btnImport").ligerButton(
        {
            click: function () {
                exportClick();
            }
        });
    });
    
</script>